package com.xqx.dao.impl;

import com.xqx.dao.UserDao;
import com.xqx.service.UserService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.annotation.PreDestroy;

/**
 * @author：xingquanxiang createTime：2019/10/2 14:25
 * description:
 */
// @Component("userDao")
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    @Override
    public void save() {
        System.out.println("dao save running...");
    }
    @PreDestroy
    public void destroy() {
        System.out.println("destroy running...");
    }
}
